package com.cf.zookeeper;

import com.cf.zookeeper.service.ZkCache;
import com.cf.zookeeper.service.ZookeeperService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * boot-awm-ZookeeperConfig
 *
 * @author <a href="2428922347@qq.com">Zhu mingming</a>
 * @info
 * @since 2018/6/25 下午 03:32
 */
@Slf4j
@Configuration
public class ZookeeperConfig {


    @Bean
    public ZookeeperService zookeeperService() {
        log.info("实例化ZookeeperService");
        return new ZookeeperService();
    }

    @Bean
    public ZkCache zkCache() {
        log.info("实例化ZkCache");
        return new ZkCache();
    }


}
